package com.fg.fgmall.service.impl;

import com.fg.fgmall.entity.Product;
import com.fg.fgmall.mapper.ProductMapper;
import com.fg.fgmall.service.ProductService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 商品业务的实现
 */
@Service
public class ProductServiceImpl implements ProductService {

    @Autowired
    private ProductMapper productMapper;
    @Override
    public Product selectById(Integer id) throws Exception {
        return productMapper.selectById(id);
    }
}
